<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            background-color: #F5F5F6;
        }

        .main {
            display: flex;
        }

        a {
            display: block;
            text-decoration: none;
            color: #3951B3;
            background-color: #fff;
            width: 50px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            margin: 0 10px;
            border-radius: 15px;
            font-size: 14px;
            font-weight: 400;
           
        }
        .active{
            background: #4E6EF2;
            color:#fff;
        }
        a:hover{
            background: #4E6EF2;
            color:#fff;  
        }
    </style>
</head>

<body>
    <div class="main">
        <a href="#" class="active">首页</a>
        <a href="#">1</a>
        <a href="#">2</a>
        <a href="#">3</a>
        <a href="#">尾页</a>
    </div>
</body>

</html>